package com.tengyun.middleplatform.trade.etl.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 订单业务渠道来源
 *
 * @author likailun
 * @date 2022/3/31
 */
@Getter
@AllArgsConstructor
public enum OrderSourceEnum {

	HOTEL("1", "酒店"),
	FLIGHT("2", "机票"),
	TICKET("3", "门票"),
	LINE("4", "精品线路"),
	BUS_TICKET("5", "汽车票"),
	FREE("6", "自由行"),
	TRAFFIC("7", "交通"),
	CHARTERE("8", "包车"),
	CAR_HAILING("9", "网约车"),
	ETC("10", "ETC"),
	OFFICIAL_TRIP("11", "公务出行"),
	GUIDE("12", "达人带你游"),
	UNMANNED_SUPERMARKET("13", "无人超市"),
	TOURISM_INVESTMENT("14", "建水旅投"),
	GUIDE_NEW("15", "新达人带你游"),
	TOURISM_PACKAGES("16", "旅行套餐"),
	ERHAI_TICKET_WAREHOUSE("17", "洱海票仓"),
	NFT("18", "NFT数字藏品"),
	LIVE_REWARDS("19", "直播打赏"),
	YUN_PIN("20", "云品"),
	DRIVERLESS("90", "无人车"),
	CONSOLIDATION("99", "合单"),
	;

	private String code;
	private String desc;

	public static String getDesc(String code) {
		OrderSourceEnum[] businessModeEnums = values();
		for (OrderSourceEnum statusEnum : businessModeEnums) {
			if (statusEnum.code().equals(code)) {
				return statusEnum.desc();
			}
		}
		return null;
	}

	public String code() {
		return this.code;
	}

	public String desc() {
		return this.desc;
	}
}
